<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="GroupeEditDlg" widgetVar="GroupeEditDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.EditGroupeTitle}">

            <h:form id="GroupeEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{groupeController.selected != null}">

                        <h:outputLabel value="#{bundle.EditGroupeLabel_idGroupe}" for="idGroupe" />
                        <h:outputText id="idGroupe" value="#{groupeController.selected.idGroupe}" />

                        <p:outputLabel value="#{bundle.EditGroupeLabel_idPersoonne}" for="idPersoonne" />
                        <p:inputTextarea rows="4" cols="30" id="idPersoonne" value="#{groupeController.selected.idPersoonne}" title="#{bundle.EditGroupeTitle_idPersoonne}" />

                        <p:outputLabel value="#{bundle.EditGroupeLabel_reeducationCollection}" for="reeducationCollection" />
                        <p:selectManyMenu id="reeducationCollection" value="#{groupeController.selected.reeducationCollection}" >
                            <f:selectItems value="#{reeducationController.items}"
                                           var="reeducationCollectionItem"
                                           itemValue="#{reeducationCollectionItem}"
                                           itemLabel="#{reeducationCollectionItem.idReeductation.toString()}"
                                           />
                            <f:converter binding="#{reeducationConverter}"/>
                        </p:selectManyMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{groupeController.save}" value="#{bundle.Save}" update="display,:GroupeListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,GroupeEditDialog);"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="GroupeEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
